package org.zfes.snowier.cloud.zbss.tts.util.datex;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class WeekDate implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private LocalDateTime mondayStart ;
	
	private LocalDateTime sundayEnd ;

	public WeekDate(LocalDateTime mondayStart, LocalDateTime sundayEnd) {
		super();
		this.mondayStart = mondayStart;
		this.sundayEnd = sundayEnd;
	}

	public LocalDateTime getMondayStart() {
		return mondayStart;
	}

	public void setMondayStart(LocalDateTime mondayStart) {
		this.mondayStart = mondayStart;
	}

	public LocalDateTime getSundayEnd() {
		return sundayEnd;
	}

	public void setSundayEnd(LocalDateTime sundayEnd) {
		this.sundayEnd = sundayEnd;
	}

	@Override
	public String toString() {
		return "WeekDate [mondayStart=" + mondayStart.format(DateTimeFormatter .ofPattern("yyyy-MM-dd HH:mm:ss")) + ", sundayEnd=" + sundayEnd.format(DateTimeFormatter .ofPattern("yyyy-MM-dd HH:mm:ss")) + "]";
	}
	
	
	
}
